import { LAYOUT,newLAOUT } from '../attr-widget'

export interface CARD extends LAYOUT {
  title: string
  showTitle: boolean
  tabList: {key:string,tab:string}[]
  showTab: boolean
}

export function newCARD(attr?:CARD):CARD{
  return Object.assign(
    newLAOUT(),
    {
      title: '卡片',
      showTitle: true,
      tabList: [],
      showTab: false
    },
    attr
  ) as CARD
}

export const STATUS_OPTIONS = [
  {value:'0',label:'隐藏'},
  {value:'1',label:'占位'},
  {value:'2',label:'可见'}
]